package com.example.bbs.dao;


import com.example.bbs.model.User;

import java.util.Date;

/**
 * @auther: zhangxin
 * @Description:
 */
public interface UserDao {


    public boolean doReg(User user);

    public User findUserByNameAndPwd(User user);

    public User findUserById(int userId);

    public User findUserByPostId(int postId);

    public boolean updatePwd(User user,String pwd);

    public boolean updateLoginTime(int userId, Date lnginTime);

    public User findUserByName(User user);
}
